<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
<script language="JavaScript">
	function SearchDemo(){
		var r,re;
		var s= " I like JavaScript!";
		re = /JavaScript/i;
		r=s.search(re);
		return(r);
	}
	document.write(SearchDemo());
	
	
	
	
	
	
	
</script>		
	</body>
</html>
